package com.community.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.community.entity.Pet;
import org.apache.ibatis.annotations.Param;

public interface PetDao extends BaseMapper<Pet> {

    /**
     * 多表查询分页
     *
     * @param page
     * @return
     */
    IPage<Pet> selectAll(IPage<Pet> page,@Param(Constants.WRAPPER)Wrapper<Pet> wrapper);

    Pet getPetById(Integer id);
}
